package org.example3;

public class UserUtil {

    public void getUserDetails(AsyncCallback<ZUser> callback){
        System.out.println("getUserDetails running");

        //处理业务逻辑
        try {
            Integer age = 33;
            callback.onSuccess(new ZUser("John", age));
        } catch (Throwable throwable) {
            callback.onFailure(throwable);
        }

    }
}
